<!--
  Generated template for the UserPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

    <ion-navbar>
        <ion-title>个人中心</ion-title>
    </ion-navbar>

</ion-header>


<ion-content style=" background: #f1f1f1;">
    <div class="card">
        <img src="assets/imgs/workcard.png">
        <div class="company">智慧农业</div>
        <div class="userinfo">
            <div class="name">{{userObj?.userName}}</div>
            <div class="tel">电话：{{userObj?.mobile}}</div>
            <div class="email">邮箱：{{userObj?.email}}</div>
        </div>
    </div>

    <div class="space-8"></div>

    <ion-list class="list-menus">

        <button ion-item (click)="pToChangePwd()">
            <img src="assets/imgs/user/ico-pwd.png" alt=""> 修改密码
        </button>
        <button ion-item (click)="pToSetting()">
            <img src="assets/imgs/user/ico-setting.png" alt=""> 设置
        </button>
        <!-- <button ion-item >
      <img src="assets/imgs/user/ico-share.png" alt=""> 检查版本
    </button> -->
        <button ion-item (click)="pToAbout()">
            <img src="assets/imgs/user/ico-about.png" alt=""> 关于
        </button>
    </ion-list>
     <div padding>
        <button color="danger" ion-button block (click)="logout()">注销</button>
      </div>

</ion-content>